package holiday.mae.app;

import mae.app.R;
import android.app.TabActivity;
import android.content.Intent;
import android.content.res.Resources;
import android.os.Bundle;
import android.widget.TabHost;

/**
 * The Class for the Holiday Activity
 * 
 * @author Dennis Stepp
 * @version 1.0z Build 1 June 7, 2011
 * 
 */
public class Holiday extends TabActivity {

	@Override
	public void onCreate(Bundle saveInstanceState) {
		super.onCreate(saveInstanceState);
		setContentView(R.layout.tabbed);
		Resources res = getResources();
		TabHost tabHost = getTabHost();
		TabHost.TabSpec spec;
		Intent intent;

		intent = new Intent().setClass(this, HolidayPiece.class);

		spec = tabHost.newTabSpec("Pink")
				.setIndicator("Pink", res.getDrawable(R.drawable.ic_tab_holiday_pink))
				.setContent(intent);
		tabHost.addTab(spec);

		intent = new Intent().setClass(this, HolidayMiscolorPiece.class);
		spec = tabHost
				.newTabSpec("Miscolors")
				.setIndicator("Miscolors",
						res.getDrawable(R.drawable.ic_tab_holiday_miscolor))
				.setContent(intent);
		tabHost.addTab(spec);

		tabHost.setCurrentTab(2);
	}
}